module.exports = [
  // addPost
  {
    url: '/vue-admin-template/post/addPost',
    type: 'post',
    response: config => {
      return {
        code: 20000,
        msg: 'ok'
      }
    }
  },

  // modifyPost
  {
    url: '/vue-admin-template/post/modifyPost',
    type: 'put',
    response: config => {
      return {
        code: 20000,
        msg: 'ok'
      }
    }
  },

  // deletePost
  {
    url: '/vue-admin-template/post/deletePost',
    type: 'delete',
    response: config => {
      return {
        code: 20000,
        msg: 'ok'
      }
    }
  },

  // postList
  {
    url: '/vue-admin-template/post/getPostList',
    type: 'get',
    response: config => {
      return {
        code: 20000,
        data: {
          list: [
            {
              _id: 1,
              postName: '研发经理',
              postCode: 'yfjl',
              postSort: 1
            }
          ],
          total: 20
        },
        msg: 'ok'
      }
    }
  }
]
